import request from '@/utils/request';

export function huiyuan(params) {
    return request({
        url: '/admin/user/list',
        method: 'get',
        params
    });
}
// 编辑
export function bianji(data) {
    return request({
        url: '/admin/user/update', 
        method: 'post',
        data
    });
}
// 搜索用户
 export function searchUserList(params) {
    return request({
        url: '/admin/user/list', 
        method: 'get',
        params
    });
}
//请求用户id
export function getUserById(params) {
    return request({
        url: '/admin/user/detail',
        method: 'get',
        params
    });
}